package com.vdong.data.service.impl;

import com.vdong.data.model.TrafficStatistics;
import com.vdong.data.repository.TrafficStatisticsRepository;
import com.vdong.data.service.TrafficStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author: liangwei
 */
@Service
public class TrafficStatisticsServiceImpl implements TrafficStatisticsService {

    @Autowired
    private TrafficStatisticsRepository trafficStatisticsRepository;

    @Override
    @Async
    public void save(TrafficStatistics trafficStatistics) {

        trafficStatisticsRepository.save(trafficStatistics);
    }
}
